Total Complexity | 1 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import {writeFileSync} from 'fs' |
||
5 | |||
6 | class Redis extends Service { |
||
7 | requireRoot = false |
||
8 | service = 'redis' |
||
9 | |||
10 | |||
11 | configPath = `${OS.getInstance().usrLocalDir}/etc/redis.conf` |
||
12 | |||
13 | configure = async (): Promise<boolean> => { |
||
14 | await writeFileSync(this.configPath, redisConf) |
||
15 | return true |
||
16 | } |
||
21 |